package cn.lingyangwl.agile.system.model.rqrs.menu;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import cn.lingyangwl.agile.model.module.dict.CusFieldBind;
import cn.lingyangwl.agile.model.module.dict.DictTypeCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;

/**
 * 移动端菜单
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class MobileMenuBase {
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "菜单名称")
    private String title;

    @ApiModelProperty(value = "图片url")
    private String imageUrl;

    @ApiModelProperty(value = "显示位置")
    @CusFieldBind(type = DictTypeCons.MENU_DISPLAY_POSITION, target = "displayPositionText")
    private String displayPosition;

    @ApiModelProperty(value = "显示位置")
    private String displayPositionText;

    @ApiModelProperty(value = "排序(越小越靠前)")
    private Integer sortNo;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "页面url")
    private String pageUrl;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "链接名称")
    private String name;

    @ApiModelProperty(value = "标签")
    private String sysTag;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "1显示0隐藏")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "菜单组")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String groupCode;
}
